<template>
    <!-- 服务成效 -->
    <div>
        <el-container>
            <el-aside width="160px">
                <div class="container" style="position: fixed">
                    <portrait></portrait>
                    <el-menu class="el-menu-vertical-demo" background-color="#2c3b5b" text-color="#fff" router
                        :default-active="activeIndex">
                        <div>
                            <el-menu-item index="1">
                                <i class="el-icon-s-claim"></i>
                                <span slot="title">安全资讯</span>
                            </el-menu-item>
                            <el-menu-item index="2">
                                <i class="el-icon-s-claim"></i>
                                <span slot="title">入职须知</span>
                            </el-menu-item>
                            <el-menu-item index="3">
                                <i class="el-icon-s-claim"></i>
                                <span slot="title">法律法规</span>
                            </el-menu-item>
                            <el-menu-item index="4">
                                <i class="el-icon-s-claim"></i>
                                <span slot="title">危险品名单</span>
                            </el-menu-item>
                            <el-menu-item index="5">
                                <i class="el-icon-s-claim"></i>
                                <span slot="title">安全管理要点</span>
                            </el-menu-item>
                        </div>
                    </el-menu>
                </div>
            </el-aside>
            <el-container>
                <el-main>
                    <router-view></router-view>
                </el-main>
            </el-container>
        </el-container>
    </div>
</template>
<script >
import Portrait from '../components/Portrait.vue';
export default {
    comments: {
        Portrait
    },
    data() {
        return {
            activeIndex: "1",
        };
    },
    created() {
    },
    mounted() {
        console.log("这里是知识库")

    },
    watch: { //监听
    },
    methods: {},
    components: { Portrait }
}
</script>

<style scoped>
.el-header {
    z-index: 100;
}

.el-menu {
    border-right: 0px;
}

.el-menu-item {
    font-size: 16px;
    font-weight: 400;
}

.text {
    font-size: 12px;
    color: #879bcc;
    margin: 10px 14px 5px;
    text-overflow: ellipsis;
    text-align: center;
}

.avatar {
    width: 40px;
    margin: auto;
    margin-top: 74px;
}

.container {
    width: 160px;
    left: 0;
    min-height: 100%;
    top: 0;
    /* z-index: 1; */
    background-color: #2c3b5b;
}
</style>
</style>